<%@ include file="../includes.jsp"%>
<html>
<head>
<title>Smart</title>
</head>
<body>
	<h2>
		User list ( ${fn:length(users)}):
	</h2>
	<table cellspacing="1" cellpadding="2" style="border: 1px solid black; background-color: black;">
		<tr style="background-color: white;">
			<th>nr.</th>
			<th>Id</th>
			<th>Type</th>
			<th>Username</th>
		</tr>
		<c:forEach items="${users}" var="user" varStatus="status">
		<tr style="background-color: white;">
			<td>${status.index}</td>
			<td>${user.id}</td>
			<td>${user.type.name}</td>
			<td>${user.username}</td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>
